<?php
/**
 * Created by PhpStorm.
 * User: 1
 * Date: 2018/3/23
 * Time: 15:38
 */

namespace app\api\controller\v1;

use app\common\lib\exception\ApiException;
use think\Db;
use app\api\model\TeacherStopLesson as M;
use think\Log;

class TeacherStopLesson extends Common
{
    /**
     * @教师停课
     * @param t_id int 教师id 必传
     * @param les_id int 课程详情id 必传
     * @param t_stop_content string 停课原因 必传
     * @author 巫玉梅 <1120504614@qq.com>
     * @return ApiException|array|string|\think\response\Json
     */
    public function save(){
        $result = (new M())->insertStopLes();
        return $result;
    }
    /**
     * @教师选学生停课
     * @param t_id int 教师id 必传
     * @param stu_stop_id int 学生id 必传
     * @param les_id int 课程详情id 必传
     * @param t_stop_content string 停课原因 必传
     * @author 巫玉梅 <1120504614@qq.com>
     * @return ApiException|array|string|\think\response\Json
     */
    public function teacher_stop_student_lesson(){
       $result = (new M())->studentStopByTeacher();
        return $result;
    }
}